package com.xdcplus.web.common.enums.wo;

public enum WoReturnMaterialEvtCateEnum {
    // 数据操作错误定义
    INSERT("INTL", "新增"),
    UPDATE("UPTL", "修改"),
    DELETE("CLTL", "删除"),
    ;

    private String code;

    private String msg;

    public static String getMsg(String code) {
        for (WoReturnMaterialEvtCateEnum ele : values()) {
            if(ele.getCode().equals(code)) {return ele.getMsg();}
        }
        return null;
    }

    WoReturnMaterialEvtCateEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

}
